<template>
  <div>
    <!-- Field 是基于 Cell 实现的，可以使用 CellGroup 作为容器来提供外边框。 -->
    <van-cell-group>
      <van-field v-model="name" label="姓名" placeholder="请输入姓名" />
      <van-field
        v-model="idcard"
        label="身份证号"
        placeholder="请输入身份证号码"
      >
      </van-field>
       
    </van-cell-group>
    <div style="margin:20px">
<van-button type="primary" block @click="addSailVipRenter()"
      >添加赛岭有房用户</van-button
    >
    </div>
    
  </div>
</template>

<script>
import gyfc from "@/api/gyfc";
//import axios from 'axios'
export default {
  components: {},
  data() {
    return {
      name: "",
      idcard: "",
      color: "#f00",
    };
  },
  methods: {
    addSailVipRenter() {
      
    //   axios.get('https://consolegy.gyfc.net.cn/api/openJob/AddSailVipRenter?idcard='+this.idcard+'&name='+this.name).then(res=>{
    //     console.log(res.data);
    //   })
      var _this=this;
      gyfc.addSailVipRenter(this.idcard,this.name).then(res=>{
         _this.$message({message:res.data,type: 'success'});
      });
    },
  },
};
</script>